﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package eu.orangeflash.webapis.wp {

    public class Categories extends Array {

        public function Categories(){
            super();
        }
        public function getCategoryByID(name:String):Category{
            var i:uint;
            i = 0;
            while (i < length) {
                if ((this[i] as Category).name == name){
                    return ((this[i] as Category));
                };
                i++;
            };
            return (null);
        }
        public function removeCategoryAt(index:int):void{
            splice(index, 1);
        }
        public function addCategory(category:Category):void{
            push(category);
        }

    }
}//package eu.orangeflash.webapis.wp 
